package com.lance.answer.question_answer;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class XjCourseInfo {


    @JsonProperty("code")
    private String code;
    @JsonProperty("content")
    private ContentDTO content;
    @JsonProperty("ts")
    private Long ts;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {

        // 课程的总数
        @JsonProperty("total")
        private Integer total;
        // 课程的总页数
        @JsonProperty("pages")
        private Integer pages;
        @JsonProperty("items")
        private List<ItemsDTO> items;

        @NoArgsConstructor
        @Data
        public static class ItemsDTO {
            // **课程的数据库ID 很重要**
            @JsonProperty("openCourseId")
            private Integer openCourseId;
            // 课程名称
            @JsonProperty("courseName")
            private String courseName;
            // 课程名称
            @JsonProperty("courseCode")
            private String courseCode;
            @JsonProperty("coverImg")
            private String coverImg;
            @JsonProperty("status")
            private Integer status;
            @JsonProperty("roleName")
            private String roleName;
            @JsonProperty("startDate")
            private Long startDate;
            @JsonProperty("endDate")
            private Long endDate;
            @JsonProperty("stuCount")
            private Integer stuCount;
            @JsonProperty("published")
            private Integer published;
            @JsonProperty("hasStudyRecord")
            private Integer hasStudyRecord;
            @JsonProperty("semesterName")
            private String semesterName;
            @JsonProperty("catalogMode")
            private Integer catalogMode;
        }
    }
}
